package edu.umuc.cmsc495_final_project;

import java.io.Serializable;

public class employee implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8830734420679025100L;
	private String lastname;
	private String firstname;
	private String idNum;
	private credential privelageLevel;
	private int passkey;
	private boolean loggedIn;
	
	public employee(String lastname, String firstname, String idNum, credential privelageLevel, int passkey){
		this.lastname = lastname;
		this.firstname = firstname;
		this.idNum = idNum;
		this.privelageLevel = privelageLevel;
		this.passkey = passkey;
	}
	
	public String getLastname() {
		return lastname;
	}
	
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
	
	public String getFirstname() {
		return firstname;
	}
	
	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}
	
	public String getIdNum() {
		return idNum;
	}
	
	public void setIdNum(String idNum) {
		this.idNum = idNum;
	}
	
	public credential getPrivelageLevel() {
		return privelageLevel;
	}
	
	public void setPrivelageLevel(credential privelageLevel) {
		this.privelageLevel = privelageLevel;
	}
	
	protected int getPasskey() {
		return passkey;
	}

	public void setPasskey(int passkey) {
		this.passkey = passkey;
	}
	
	public boolean isLoggedIn() {
		return loggedIn;
	}

	public void setLoggedIn(boolean loggedIn) {
		this.loggedIn = loggedIn;
	}
	
	public String toString(){
		return "(" + lastname + ", " + firstname + ") - " + idNum + " - " + privelageLevel;
	}
}
